#ifndef _APPSESSION_H
#define _APPSESSION_H

#include "buffer.h"
#include "msgqueue.h"

struct appSession {
	int fd;
	int closed;
	struct buffer *buff;

	Queue_t *requests;
	Queue_t *responses;

};
typedef struct appSession AppSession;

extern int is_closed(AppSession *session);
extern int send_msg(AppSession *session, struct buffer *msg);
extern int close_session(AppSession *session);

#endif

